package com.atguigu.eduservice.client;


import com.atguigu.eduservice.entity.vo.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

@FeignClient(name = "service-ucenter", fallback = UcenterClientImpl.class)
@Component
public interface UcenterClient {

    @PostMapping("/educenter/member/getInfo/{id}")
    public UcenterMember getInfo(@PathVariable("id") String id);

}
